#ifndef XTEXT_LINE_H
#define XTEXT_LINE_H

#ifdef XEXPORTING
#define XEXPORT_DLL __declspec(dllexport)
#else
#define XEXPORT_DLL __declspec(dllimport)
#endif

#include <XGui\XWidget.h>

class XEXPORT_DLL XTextLine : public XWidget
{
private:
	bool Active;
	int LastKey;
	int Pause;
	std::string TextData;

	void _loadVertices();
	void _loadTextureVertices();
public:
	XTextLine(XHash hash, XWindow* parentWindow);

	void SetText(const char* text);
	void SetText(int number);
	void SetActive();
	void SetUnactive();
	void SetGeometry(XRectangle rect);

	void Update(XInputModule* input);
};

#endif